import request from '@/utils/request'

// 查询广告数据列表
export function listPerformance(query) {
  return request({
    url: '/system/performance/list',
    method: 'get',
    params: query
  })
}

// 查询广告数据详细
export function getPerformance(performanceId) {
  return request({
    url: '/system/performance/' + performanceId,
    method: 'get'
  })
}

// 新增广告数据
export function addPerformance(data) {
  return request({
    url: '/system/performance',
    method: 'post',
    data: data
  })
}

// 修改广告数据
export function updatePerformance(data) {
  return request({
    url: '/system/performance',
    method: 'put',
    data: data
  })
}

// 删除广告数据
export function delPerformance(performanceId) {
  return request({
    url: '/system/performance/' + performanceId,
    method: 'delete'
  })
}
